package cn.just.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author wujiaming
 */
public class MyFilter implements Filter {

    /**
     * 初始化
     * @param filterConfig
     * @throws ServletException
     */
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {
        System.out.println("hello");
    }

    /**
     * 销毁
     */
    public void destroy() {

    }
}
